package cn.zzp.system.domain;

import cn.zzp.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 * @description: 菜单
 * @date 2022/8/2 10:33
 */
@Data
public class Menu extends BaseDomain {

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 组件路径
     */
    private String component;

    /**
     * url路径
     */
    private String url;

    /**
     * 图标
     */
    private String icon;

    /**
     *
     */
    private Integer index;

    /**
     * 上级菜单
     */
    private Long parent_id;
    private Menu parent;
    /**
     * 子集对象集合
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<Menu>();

    /**
     * 简述
     */
    private String intro;

    /**
     * 状态
     */
    private Integer state;
}
